#include <iostream>

#include "wad.hpp"

using namespace std;

int main(int argc, char* argv[])
{
	if(argc != 3)
	{
		cerr << "Usage: " << argv[0] << " WADFILE DESTPATH" << endl;
		return EXIT_FAILURE;
	}

	wad_t wad(argv[1]);
	wad.print_header();
	wad.unpack(argv[2]);

	return EXIT_SUCCESS;
}
